package modele;

import java.util.ArrayList;


public class Solution {
	
	private ArrayList<Job> jobsSolution = new ArrayList<Job>();
	private ArrayList<Machine> listeMachines = new ArrayList<Machine>();
	
	public Solution() {

    }
	
	public Solution(ArrayList<Job> listeJobs) {
        this.jobsSolution = listeJobs;
    }

	public ArrayList<Job> getJobsSolution() {
		return jobsSolution;
	}

	public void addJobsSolution(Job j) {
		this.jobsSolution.add(j);
	}
	
	public void setListeMachines(ArrayList<Machine> listeMach) {
		this.listeMachines = listeMach;
	}
	
	public ArrayList<Machine> getListeMachines() {
		return this.listeMachines;
	}
	
	public Solution creerSolution(ArrayList<Machine> machines) {
		Solution s = new Solution();
		
		for(Machine m : machines) {
            for (Integer o : m.getListeJobs()) {
                System.out.print((o+1)+" ");
            }
            System.out.println();
        }
		return s;
	}
	
}
